package com.eyeem.recyclerviewtools.sample;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.ActivityCompat;
import android.view.View;

import com.facebook.drawee.backends.pipeline.Fresco;

public class MainActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Fresco.initialize(this);
//        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
//        setSupportActionBar(toolbar);
    }

    public void startActivity(View view) {
        switch (view.getId()) {
            case R.id.ChooserActivity:
                startActivity(new Intent(this, ChooserActivity.class));
                break;
            case R.id.SampleActivity:
                startActivity(new Intent(this, Sample1Activity.class));
                break;
            case R.id.ViewPagerTabActivity:
                startActivity(new Intent(this, ViewPagerTabActivity.class));
                break;
            case R.id.ViewPagerTabPinActivity:
                startActivity(new Intent(this, ViewPagerTabPinActivity.class));
                break;
            case R.id.ViewPager3Activity:
                startActivity(new Intent(this, ViewPager3Activity.class));
                break;
            case R.id.ViewPager4Activity:
                startActivity(new Intent(this, ViewPager4Activity.class));
                break;
            case R.id.MaterialDesiginActivity:
                startActivity(new Intent(this, MaterialDesiginActivity.class));
                break;
            case R.id.ScrollFlagsActivity:
                startActivity(new Intent(this, ScrollFlagsActivity.class));
                break;
            case R.id.ScrollFlagsActivity2:
                ActivityCompat.startActivity(this, new Intent(this, ScrollFlagsActivity2.class).putExtra("ScrollFlagsActivity", "ScrollFlagsActivity2"), null);
                break;
            case R.id.HeaderBehaivor:
                ActivityCompat.startActivity(this, new Intent(this, HeaderBehaivorActivity.class).putExtra("ScrollFlagsActivity", "HeaderBehaivor"), null);
                break;
            case R.id.FooterBehaivor:
                ActivityCompat.startActivity(this, new Intent(this, FooterBehaivorActivity.class).putExtra("ScrollFlagsActivity", "FooterBehaivor"), null);
                break;
            case R.id.GestureView:
                ActivityCompat.startActivity(this, new Intent(this, GestureViewActivity.class), null);
                break;
            case R.id.GestureViewAnimator:
                ActivityCompat.startActivity(this, new Intent(this, GestureViewAnimatorActivity.class), null);
                break;
            case R.id.ImageBroswerActivity:
                ActivityCompat.startActivity(this, new Intent(this, ImageBroswerActivity.class), null);
                break;
            case R.id.SnackBar:
                ActivityCompat.startActivity(this, new Intent(this, SnackBarActivity.class), null);
                break;
            case R.id.MaterialDesiginActivity2:
                startActivity(new Intent(this, MaterialDesiginActivity2.class));
                break;
            case R.id.MaterialDesiginStickyActivity3:
                startActivity(new Intent(this, MaterialDesiginStickyActivity3.class));
                break;
            case R.id.SwipeDelete:
                startActivity(new Intent(this, com.eyeem.recyclerviewtools.sample.itemtouchhelperextension.MainActivity.class));
                break;
            case R.id.ViewPagerHeaderBehaivor:
                startActivity(new Intent(this, ViewPagerHeaderBehaivorActivity.class));
                break;
            case R.id.xRecyclerView:
                startActivity(new Intent(this, com.eyeem.recyclerviewtools.sample.xrecyclerview.MainActivity.class));
                break;
            case R.id.VerticalRecyclerViewWithHorionzon:
                startActivity(new Intent(this, VerticalRecyclerViewWithHorionzonActivity.class));
                break;
            case R.id.ImageBehaivor:
                startActivity(new Intent(this, ImageBehaivorActivity.class));
                break;
            case R.id.PullRefreshLayout:
                startActivity(new Intent(this, PullRefreshLayoutActivity.class));
                break;

            default:
                break;
        }
    }
}
